<template>
  <div>
    <FlowView :flow-data="flowData" @getCurrentNode="getCurrentNode" />
  </div>
</template>
<script>
import FlowView from './flowview'

export default {
  name: 'Flow',
  components: {
    FlowView
  },
  props: {
    flowData: {
      type: Object,
      default: () => {}
    }
  },
  data() {
    return {}
  },
  methods: {
    getCurrentNode(currentNode) {
      this.$emit('getCurrentNode', currentNode)
    }
  }
}
</script>
